<?php
require_once('includes/config.php');

$span = (time() - 900);
$pl = $db -> Execute("SELECT id, user FROM players WHERE page='Rozmowa' AND lpv>=".$span);
$on = '';
$numon = 0;
while (!$pl -> EOF) 
{
	$on = $on." [<A href=view.php?view=".$pl -> fields['id']." target=_parent>".$pl -> fields['user']."</a> (".$pl -> fields['id'].")] ";
	$numon = ($numon + 1);
	$pl -> MoveNext();
}
$pl -> Close();

echo '<div align="center">'.$numon.' osób rozmawia.<br>'.$on.'</div>';


?>
